package com.highspeed.bdk.bean.entity.command;

import com.bianmaba.spring.data.jpa.domain.annotations.QueryCacheable;
import com.highspeed.bdk.bean.base.IncrementEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import java.util.Date;

@Entity
@DynamicUpdate(true)
@DynamicInsert(true)
@QueryCacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class UserCommonCommand extends IncrementEntity {
    /**
     * 编号
     */
    private String no;

    /**
     * 类型
     */
    private String type;

    /**
     * 命令
     */
    private String command;

    /**
     * 最近执行时间
     */
    private Date recentExecutionTime;

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public Date getRecentExecutionTime() {
        return recentExecutionTime;
    }

    public void setRecentExecutionTime(Date recentExecutionTime) {
        this.recentExecutionTime = recentExecutionTime;
    }
}
